﻿using UnityEngine;
using System.Collections;

//[ExecuteInEditMode]
public class GameOverController : MonoBehaviour {

	public Vector2 offSet;
	public Vector2 sizeButton;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnGUI() {

		
		if (GUI.Button (new Rect (offSet.x, offSet.y, sizeButton.x, sizeButton.y), "Restart")) {
			Application.LoadLevel("GamePlay");
		}
				
	}


}
